package com.link.base.base.dailystatement.dao.mybatis.mapper;


import com.link.base.base.dailystatement.model.DailyInvoice;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  安小波
 * @date:   2018-08-01
 * @version 1.0
 */

public interface DailyInvoiceMapper extends BasicMapper<DailyInvoice> {

    /**
     * 统计日结单明细中当天开票明细信息
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public List<DailyInvoice> queryInvoice(DailyInvoice entity) throws Exception;

    /**
     * 根据headId查询开票明细
     *
     * @param entity
     * @return
     * @throws Exception
     */
    public List<DailyInvoice> queryByHeadId(DailyInvoice entity) throws Exception;

    /**
     * 批量插入开票明细记录
     *
     * @param invoiceList
     * @throws Exception
     */
    public void batchInsertInvoice(List<DailyInvoice> invoiceList) throws Exception;

}
